<template>
  <div>
    <h3>管理员信息</h3>
    <el-table :data="tableData" stripe style="width: 100%">
    <el-table-column prop="uid" label="用户ID" width="80" v-if="false" align="center" ></el-table-column>
    <el-table-column prop="pid" label="病患ID" width="80" align="center"></el-table-column>
    <el-table-column prop="pimage" label="头像" width="100" align="center"></el-table-column>
    <el-table-column prop="pname" label="用户姓名" width="100" align="center"></el-table-column>
    <el-table-column prop="page" label="年龄" width="60" align="center"></el-table-column>
    <el-table-column prop="psex" label="性别" width="50" align="center"></el-table-column>
    <el-table-column prop="pcard" label="身份证号" width="180" align="center"></el-table-column>
    <el-table-column prop="ptel" label="手机号码" width="120" align="center"></el-table-column>
    <el-table-column prop="pbirthday" label="出生日期" width="120" align="center"></el-table-column> 
    <el-table-column prop="paddress" label="居住地址" width="240" align="center"></el-table-column>
  </el-table>
  </div>
</template>

<script>
export default {
  data() {
      return {
        tableData: [],
      }
    },
    methods:{
        findOne(){
              let r=sessionStorage.getItem("u");
              this.$axios.post("/admin-serv/admin/findoneByUid/"+r.uid).then(resp=>{
                      this.tableData.push(resp.data.data.data);
           });
        }
    },
    mounted(){
          this.findOne();
    }
}
</script>

<style>

</style>